package com.xyy.kingdeejdy.pojo.erp.customer;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@NoArgsConstructor
@Data
public class CustomerRuInfo {

    @JsonProperty("msg")
    private String msg;
    @JsonProperty("number")
    private String number;
    @JsonProperty("deleted")
    private Boolean deleted;
    @JsonProperty("code")
    private Integer code;
    @JsonProperty("level")
    private String level;
    @JsonProperty("name")
    private String name;
    @JsonProperty("remark")
    private String remark;
    @JsonProperty("contacts")
    private List<ContactsDTO> contacts;

    @NoArgsConstructor
    @Data
    public static class ContactsDTO {
        @JsonProperty("address")
        private String address;
        @JsonProperty("mobile")
        private String mobile;
        @JsonProperty("name")
        private String name;
        @JsonProperty("primary")
        private Boolean primary;
    }
}
